package com.jk.controller;


import com.jk.entity.TUser;
import com.jk.service.HellowService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by scc on 2017/12/18.
 */
@RestController
@RequestMapping("app/pay")
public class TestController {
    @Autowired
    private HellowService hellowService;
    @GetMapping("test")
    public List<TUser> testData(){
        List<TUser>  hellow= hellowService.sayHellow();
        return hellow;
    }
}
